package com.wish.group05.base.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wish.group05.base.entity.HouseInfo;
import com.wish.group05.base.entity.PremisesInfo;
import com.wish.group05.base.entity.SysDept;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@Accessors(chain = true)
public class HouseInfoVO  {
    /**
     * 列表显示--房产信息
     */
    private String fcMessage;

    /**
     * 列表显示--x室x厅
     */
    private String shiting;

    /**
     * 列表显示--租房类型（合租，整租，公寓）
     */
    private String zflx;
    private Integer zflxNumber;
    /**
     * 楼盘--对应房产信息
     */
    private PremisesInfo premisesInfo;

    /**
     * 小区名(使用楼盘名称)
     */
    private String premiseName;
    /**
     * 部门--对应商户id部门编码
     */
    private SysDept dept;

    private Integer premisesId;

    private Integer leaseType;

    private String buildingNo;

    private String unitNo;

    private String roomNo;

    private String flatName;

    private Integer room;

    private Integer hall;

    private Double proportion;

    private Integer floor;

    private Integer floorCount;

    private Integer decorate;

    /**
     * 支付方式-押 1 押一 2 押二 3 押三
     */
    private Integer paymentMortgage;

    /**
     * 支付方式-付 1 付一 2 付二 3 付三 4 付四 5 付五 6 付六
     */
    private Integer paymentPay;

    private Integer manager;

    private Integer type;

    private String publicFacility;

    private String introduce;

    private Integer status;

    private Integer publishStatus;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "yyyy-MM-dd")
    private Date createTime;

    private String createBy;

    private Integer reserve1;

    private Integer reserve2;

    private String reserve3;

    private String reserve4;

    private String reserve5;

    private Integer deptId;

    /**
     * 删除标识。0:未删除，1：删除
     */
    private Boolean delFlg;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "yyyy-MM-dd")
    private Date updateTime;


    /**
     * 房产信息(考虑在房产表中增加house_name，楼栋，单元，门牌号和居室，然后带出)
     */
    @TableField(exist = false)
    private String houseName;

    /**
     * 租房类型(使用楼盘名称)
     */
    @TableField(exist = false)
    private String leaveType;


    /**
     * 居室
     */
    @TableField(exist = false)
    private String roomName;
}
